package com.qianfeng.entity;

import java.util.Date;

/**
 * 映射数据库用户表
 */
public class User {
    private Integer userId;//用户id
    private String userLoginName;//用户名
    private String userPassword;//密码
    private String userName;//真实姓名
    private String userEmail;//邮箱
    private Integer userState;//用户状态默认0
    private Date createTime;//创建时间
    private Date updateTime;//设置当前时间，并且自动更更新时间
    private String salt;//盐

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userLoginName='" + userLoginName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userName='" + userName + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", userState=" + userState +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", salt='" + salt + '\'' +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserLoginName() {
        return userLoginName;
    }

    public void setUserLoginName(String userLoginName) {
        this.userLoginName = userLoginName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public Integer getUserState() {
        return userState;
    }

    public void setUserState(Integer userState) {
        this.userState = userState;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public User() {
    }
}
